<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增引物合成版')" />
</head>
<body class="white-bg">
    <div>
        <form class="form-horizontal" id="form-WpPrimerSynthesisPlate-add">
            <h4 class="form-header h4">拼板详情</h4>

            <div class="row">
                <div class="col-xs-offset-5 col-xs-10">
                    <button type="button" class="btn btn-sm btn-primary" onclick="getSelections()"><i class="fa fa-check"></i>获取选中值</button>&nbsp;
                    <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>横拼</button>&nbsp;
                    <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>竖拼</button>&nbsp;
                </div>
            </div>

        </form>
    </div>

    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/WpPrimerSynthesisPlate"

        function submitHandler() {
            //调用父页面方法
            activeWindow().doSubmit();
        }

        function getSelections() {
            var ids = selectColumns("id");
            console.info(ids)
        }

        //父级页面的勾选内容
        function selectColumns(column) {
            var rows = $.map(activeWindow().$("#bootstrap-table").bootstrapTable('getSelections'), function (row) {
                return $.common.getItemField(row, column);
            });
            return rows;
        }

    </script>
</body>
</html>
